package com.example.shiro_demo1.service;

import com.example.shiro_demo1.dao.UserDao;
import com.example.shiro_demo1.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author cxp
 * @version 1.0
 * @date 2019/6/27 9:28
 */
@Service
public class UserService {
    @Resource
    private UserDao userDao;

    public User findByUsername(String username){
        return userDao.findByUsername(username);
    }
}
